/*
 * Created by 2019年4月17日
 */
package com.agg.persist.xml.mapping;

import com.agg.persist.xml.util.Condition;
import com.alibaba.druid.sql.ast.expr.SQLPropertyExpr;

import java.util.ArrayList;
import java.util.List;


public class EntityMapper {

	private String id;

	private String alias;

	private String clazz;

	private String table;

	private String sqlTpl;

	private List<Property> properties = new ArrayList<Property>();

	private List<Join> joins = new ArrayList<Join>();

	private List<Ref> refs = new ArrayList<Ref>();

	private List<Condition>  conditions= new ArrayList<Condition>();

	private List<SQLPropertyExpr> selectItems= new ArrayList<SQLPropertyExpr>();


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	/**
	 * @return the clazz
	 */
	public String getClazz() {
		return clazz;
	}
	/**
	 * @param clazz the clazz to set
	 */
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	/**
	 * @return the table
	 */
	public String getTable() {
		return table;
	}
	/**
	 * @param table the table to set
	 */
	public void setTable(String table) {
		this.table = table;
	}
	/**
	 * @return the properties
	 */
	public List<Property> getProperties() {
		return properties;
	}
	/**
	 * @param properties the properties to set
	 */
	public void setProperties(List<Property> properties) {
		this.properties = properties;
	}
	/**
	 * @return the joins
	 */
	public List<Join> getJoins() {
		return joins;
	}
	/**
	 * @param joins the joins to set
	 */
	public void setJoins(List<Join> joins) {
		this.joins = joins;
	}
	/**
	 * @return the refs
	 */
	public List<Ref> getRefs() {
		return refs;
	}
	/**
	 * @param refs the refs to set
	 */
	public void setRefs(List<Ref> refs) {
		this.refs = refs;
	}

	public String getSqlTpl() {
		return sqlTpl;
	}

	public void setSqlTpl(String sqlTpl) {
		this.sqlTpl = sqlTpl;
	}

	public List<Condition> getConditions() {
		return conditions;
	}

	public void setConditions(List<Condition> conditions) {
		this.conditions = conditions;
	}

	public List<SQLPropertyExpr> getSelectItems() {
		return selectItems;
	}

	public void setSelectItems(List<SQLPropertyExpr> selectItems) {
		this.selectItems = selectItems;
	}
}
